var HTMLCanvasElements = function HTMLCanvasElements() {
    //如果不能new  要抛出一个错误
    throw new TypeError("Illegal constructor");
}//构造函数
catvm.safefunction(HTMLCanvasElements); //tostring 保护
//设置原型链上显示的名字***************************************************************************
Object.defineProperties(HTMLCanvasElements.prototype, {
    [Symbol.toStringTag]: {
        value: "HTMLCanvasElements",
        configurable: true
    }
});
//添加div标签***************************************************************************
catvm.memory.htmlelements['canvas']=function () {
    var canvas=new(function () {});
    // 属性及方法
    canvas.getContext=function getContext(e) {
        if (e==='2d'){
            return CanvasRenderingContext2D
        }
        debugger;
    };catvm.safefunction(canvas.getContext);
    canvas.toDataURL=function toDataURL() {
        return ''
    };catvm.safefunction(canvas.toDataURL);
    canvas.style={}//待补
    canvas.__proto__=HTMLCanvasElements.prototype;
    return catvm.proxy(canvas)
}
//属性、方法
CanvasRenderingContext2D=catvm.proxy(class CanvasRenderingContext2D {
})
CanvasRenderingContext2D.fillRect = function fillRect(x,y,z,c) {
    catvm.debugger_()
    return undefined
};catvm.safefunction(CanvasRenderingContext2D.fillRect);
CanvasRenderingContext2D.fillText = function fillText(x,y,z) {
    catvm.debugger_()
    return undefined
};catvm.safefunction(CanvasRenderingContext2D.fillText);
CanvasRenderingContext2D.arc=function arc(x,y,x1,y1,z1,z2) {
    catvm.debugger_()
    // return undefined
};catvm.safefunction(CanvasRenderingContext2D.arc);
CanvasRenderingContext2D.stroke=function stroke() {
    catvm.debugger_()
    // return undefined
};catvm.safefunction(CanvasRenderingContext2D.stroke);
